package cn.ranko.site.mapper;

import cn.ranko.bean.easyui.DataGridParam;
import cn.ranko.site.model.SysUsers;

import java.util.List;
import java.util.Set;

public interface SysUsersMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUsers record);

    int insertSelective(SysUsers record);

    SysUsers selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUsers record);

    int updateByPrimaryKey(SysUsers record);

    SysUsers findByUsername(String username);

    List<String> findRoles(String username);

    List<String> findPermissions(String username);

    int getTotal();

    List<SysUsers> getRows(DataGridParam dataGridParam);
}